package com.iotsz.common.exception;


import lombok.Data;

@Data
public class IOTException extends RuntimeException{
    private static final long serialVersionUID= 1L;

    private String msg;
    private int code = 200;

    public IOTException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public IOTException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public IOTException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public IOTException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
